package com.hamilton.erik.pt.core.model;

import java.io.Serializable;

import com.hamilton.erik.pt.core.enumeration.EnclosureMaintenanceAction;

public class EnclosureMaintenance implements Serializable {

	private static final long serialVersionUID = -6336099617131594772L;
	
	private Long id;
	private Long enclosureId;
	private EnclosureMaintenanceAction action;
	private String timestamp;
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getEnclosureId() {
		return enclosureId;
	}
	
	public void setEnclosureId(Long enclosureId) {
		this.enclosureId = enclosureId;
	}
	
	public EnclosureMaintenanceAction getAction() {
		return action;
	}
	
	public void setAction(EnclosureMaintenanceAction action) {
		this.action = action;
	}

	public void setAction(String action) {
		this.action = EnclosureMaintenanceAction.fromAction(action);
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	
}
